<template>
  <div>
    <h2>{{ num }}</h2>
    <Counter @add10="num += 10" @add100="add" :data="23" :data2=num></Counter>
  </div>
  <div>
    <el-row class="mb-4">
      <el-button>Default</el-button>
      <el-button type="primary">Primary</el-button>
      <el-button type="success">Success</el-button>
      <el-button type="info">Info</el-button>
      <el-button type="warning">Warning</el-button>
      <el-button type="danger">Danger</el-button>
    </el-row>
  </div>
</template>

<script>
import Counter from "@/components/Counter.vue";
export default {
  data() {
    return {
      num: 100
    }
  },
  components: {
    Counter
  },
  methods: {
    add(n) {
      this.num += n
    }
  }
}
</script>
<style scoped>

</style>